Ext.define('Admin.model.User', {
    extend: 'Admin.model.Base',

    fields: [
		{name:'loginName'},
		{name:'name'},
		{name:'plainPassword'},
		{name:'password'},
		{name:'salt'},
		{name:'roles'},
		{name:'registerDate', type: 'date', dateFormat: 'time'},
		{name:'email'},
		{name:'status', type: 'int'},
		{name:'ssjg', type: 'int'},
		{name:'dt_lastlogin', type: 'date',dateFormat: 'time'} 
	],
	randData: function(i){
		i++;
		var od = this.callParent(arguments);
		od['roles']='admin';
    	return od;
    }
});

